//
// Created by two8g on 17-11-27.
//

#include "AddCommissionedEmployee.h"
#include "CommissionedClassification.h"
#include "BiweeklySchedule.h"

using namespace std;

AddCommissionedEmployee::~AddCommissionedEmployee() {

}

AddCommissionedEmployee::AddCommissionedEmployee(int empId, string name, string address, double salary, double commissionRate)
        : AddEmployeeTransaction(empId, name, address), itsSalary(salary), itsCommissionRate(commissionRate) {}

PaymentClassification *AddCommissionedEmployee::GetClassification() const {
    return new CommissionedClassification(itsSalary, itsCommissionRate);
}

PaymentSchedule *AddCommissionedEmployee::GetSchedule() const {
    return new BiweeklySchedule();
}
